package com.sylar.happyreader.tools;

import android.content.Context;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

public class Config {

	public static boolean DEBUG = true;
	
	public static int screenWidth;
	public static int screenHeight;
	public static String APPTAG = "happybook";
	public static final String CoverUri = "http://www.newperl.com/tom/res/read/";
	public static final String HOST_URL ="http://www.newperl.com/";
	public static  String RequestUri = "http://www.newperl.com/tom/servlet/read?";
	public static  String RequestPkgUri = "http://www.newperl.com/tom/servlet/total?cmd=update";
	
	public static String teamHomeUrl ="http://www.newperl.com/"; 
	public static String teamAboutUrl ="http://www.newperl.com/sjzqbabout.html"; 
	
	public static int pageNo ;
	
	public static String nowPage ;
	
	
//	public static String bookName;
//	
//	public static String style = "仙侠";
//	
//	public static String sex = "man";
	
	public static String[] pagelists;
	
	public static String[] styleList = {"仙侠","军事","历史","玄幻","神话","科幻","网游","语录"};
	
	public static StringBuilder contentTemp = null;
	//e9a8bc2d-a712-48a0-a512-7148fb4053ed  312e8313-274c-4f06-aa8f-5374ad139a3f
	public static String adid = "b693a19c-6b22-4ea3-b578-4d834868deb2";
	
	public static int adshowdelay = 30;
	
	public static int adShowTime = 3;
	
	public static String deviceId;
	
	public static String getUniquely(Context context) {
		String sUniquelyCode = "";
		if (TextUtils.isEmpty(sUniquelyCode)) {
			TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
			sUniquelyCode = tm.getDeviceId();
			if (TextUtils.isEmpty(sUniquelyCode)) {
				sUniquelyCode = android.provider.Settings.System.getString(context.getContentResolver(),android.provider.Settings.System.ANDROID_ID);
			}
		}
		return sUniquelyCode;
	}
	
}
